<?php
function add_msg($lv, $msg, $file) {
	if ($lv <= 0) {
		$fp = fopen($file, 'a+');
		fwrite($fp, $msg);
		fclose($fp);
	}
}
?>